import Request from '@/utils/requset.js'
import { queryParams } from '@/uni_modules/uv-ui-tools/libs/function/index.js'

let request = new Request().http
let uploadFile = new Request().upLoadFile
//全局定义请求头
export default {
	
	
	
	systemNotice: (data) => {
		return request({
			url: `/index/systemNotice`,
			method: "post",
			data,
			nologin: true
		})
	},
    inertAct: (data) => {
    	return request({
    		url: `/index/inertAct`,
    		method: "post",
    		data,
    		
    	})
    },
	noticeInfo: (data) => {
		return request({
			url: `/index/noticeInfo`,
			method: "get",
			data,
			
		})
	},
	
	voteInfo: (data) => {
		return request({
			url: `/index/info`,
			method: "post",
			data,
			
		})
	},
	voteResult: (data) => {
		return request({
			url: `/index/voteResult`,
			method: "post",
			data,
			
		})
	},
	infoDetail: (data) => {
		return request({
			url: `/index/infoDetail`,
			method: "get",
			data,
			
		})
	},
    login: (data) => {
    	return request({
    		url: `/user/login`,
    		method: "post",
    		data,
    		nologin: true
    	})
    },
	mobilelogin: (data) => {
		return request({
			url: `/user/mobilelogin`,
			method: "post",
			data,
			nologin: true
		})
	},
	
	community: (data) => {
		return request({
			url: `/index/community`,
			method: "post",
			data,
			nologin: true
		})
	},
	addComment: (data) => {
		return request({
			url: `/index/addComment`,
			method: "post",
			data,
			nologin: true
		})
	},
	submitVote: (data) => {
		return request({
			url: `/index/submitVote`,
			method: "post",
			data,
			nologin: true
		})
	},
	floor: (data) => {
		return request({
			url: `/index/floor`,
			method: "post",
			data,
			nologin: true
		})
	},
	
	real: (data) => {
		return request({
			url: `/index/real`,
			method: "post",
			data,
			
		})
	},
	wechatLogin: (data) => {
		return request({
			url: `/user/wechatlogin`,
			method: "post",
			data,
			nologin: true
			
		})
	},
	realInfo: (data) => {
		return request({
			url: `/index/realInfo`,
			method: "post",
			data,
			nologin: true
			
		})
	},
	
	// /api/index/wechatLogin
    
      //oss文件上传
      uploadImg: (data) => {
        return uploadFile(data)
      },
    
	
	
	
	
	
	
	//我的
}
/*
请求样式：
    自定义名字: function(data) {
        return request({
            url: "/banner", //请求头
            method:"GET", //请求方式 
            data: data,    //请求数据
            token: token, // 可传  
            hideLoading: false, //加载样式
        })
    },
*/